Skip to content

feat(button): add tooltip support for button - #661

Open
LuckyFBB wants to merge 1 commit into
DTStack:masterfrom
LuckyFBB:feat_650
Open

feat(button): add tooltip support for button#661
LuckyFBB wants to merge 1 commit into
DTStack:masterfrom
LuckyFBB:feat_650

Conversation

@LuckyFBB

@LuckyFBB LuckyFBB commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

变更类型

请选择以下选项以描述 PR 的类型:

  • Bug 修复(修复现有问题)
  • 新功能(添加了一个功能)
  • 代码优化(性能改进、代码重构)
  • 文档更新
  • 单测新增或修改
  • 其他(请说明):

相关问题

#650

变更内容

改动点:Button 组件新增 tooltip 属性(支持字符串、ReactNode 及 TooltipProps 配置对象),内部通过 toTooltipProps 解析并按需包裹 antd Tooltip;同步补充文字提示 Demo、API 文档以及针对 falsy 值、数值 0 与禁用状态的单元测试。

影响范围:Button 组件及其使用场景(为按钮新增 tooltip 文字提示功能,向前兼容原有 Button 属性和行为,不影响未配置 tooltip 的既有按钮)。

详细描述

对应 Previewer

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant